// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
const ipc = require('electron').ipcRenderer;

var closeBtn = document.getElementById('close');

if (closeBtn) {
    closeBtn.addEventListener('click', () => {
        console.log(333333333);
        ipc.send('close-app');
    })
}
